<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>

<body>
	<button id="btn">按钮==jsonp</button>

	<script>
		//function  
		// $.ajax({
		// 	url: 'http://192.168.75.106:3000/jsonp',
		// 	type:'get',
		// 	data:{},
		// 	success:function(res){
		// 				console.log(res,8888);
		// 	},
		// })

		function qq(res) {
			console.log(res, 8888);
		}
	</script>

	<!-- 
	<script src="http://192.168.75.106:3000/jsonp?callback=qq"></script> -->

	<script>
		btn.onclick = function() {
			let script = document.createElement('script')
			script.src = 'http://192.168.75.106:3000/jsonps?callback=qq'

			document.body.appendChild(script)
		}
		// $('button').on('click',function(){})
		// $('button').click(function(){})
	</script>

</body>

</html>
